package com.ss.android.article.base.feature.detail.view;

import android.app.Activity;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.DecelerateInterpolator;

import com.ss.android.article.base.ui.BaseActionDialog;
import com.ss.android.article.browser.R;
import com.ss.android.article.share.e.b;
import java.util.EnumSet;

public class DetailActionDialog extends BaseActionDialog {
    public int a;

    public DetailActionDialog(Activity activity, b arg2, int arg3, String arg4, DisplayMode arg5, EnumSet arg6) {
        super(activity, arg2, arg3, arg4, arg5, arg6);
        android.support.design.a.m();
    }

    public final void a() {
        float v5 = 1f;
        super.a();
        if(this.a > 0) {
            this.mCancleBtn.setText(this.a);
            this.a = -1;
        }

        new AlphaAnimation(0f, v5).setDuration(600);
        AlphaAnimation alphaAnimation = new AlphaAnimation(v5, 0f);
        alphaAnimation.setInterpolator(new DecelerateInterpolator(2f));
        alphaAnimation.setDuration(400);
    }

    public final boolean a(com.ss.android.article.share.entity.a arg2, View arg3, com.ss.android.article.share.c.a arg4) {
        boolean v0 = !this.g() ? false : super.a(arg2, arg3, arg4);
        return v0;
    }

    public final int b() {
        return R.layout.detail_action_dialog;
    }

    public final void c() {
        if(this.g()) {
            super.c();
        }
    }
}

